Repository navigation
feat: make this repository the wheels hub, with hatch-prebuilt 0.3 - #5
Merged
Merged
Conversation
…atch_build.py Register hatch-prebuilt as the hatchling plugin "prebuilt": a wheel repository of a tool from the static binaries sets its tools in [tool.hatch.metadata.hooks.prebuilt] and needs no hatch_build.py. python -m hatch_prebuilt runs the recipe's commands (info, platforms, versions, update) for either kind of repository, and info prints what CI needs to build and test the wheels.
The repository becomes cpp-linter/wheels: hatch-prebuilt moves to hatch-prebuilt/ (same package, same releases), and the shared parts of the wheel repositories move here from cpp-linter/.github: - binary-wheels.yml, wheel-release.yml and monitor-upstream.yml, with wheel-automation.yml, which runs everything else a wheel repository needs and calls monitor-upstream.yml at the same commit; - runbooks/: what the publisher App does and what a person still does, and new-wheel.py with its templates. Every pull request writes a wheel repository with new-wheel.py, builds a wheel of it with hatch-prebuilt from the same commit and runs its smoke test.
… until it is merged
…PI is ready monitor-upstream.yml writes only the version file again when a caller gives no update-command and the recipe is not a static binaries one, and the update pull request no longer promises to merge itself when auto-merge is off. new-wheel.py escapes the summary for pyproject.toml and tells how to finish pinning in the written directory; new-wheel.md builds in the new repository and pushes after the PyPI publishers and the App; the template's smoke test checks the real PATH.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This repository becomes cpp-linter/wheels, the hub of the wheel repositories, the way deadsnakes/runbooks is for its version repositories. hatch-prebuilt stays the same package with the same releases; it moves to
hatch-prebuilt/.hatch-prebuilt 0.3 (
hatch-prebuilt/)hatch_build.py:pyproject.tomlconfigures the recipe in[tool.hatch.metadata.hooks.prebuilt], and hatchling finds the hooks as theprebuiltplugin.python -m hatch_prebuiltruns the recipe's commands for either kind of repository:update,versions,platforms, and newinfo(what CI needs, as JSON) andrelease-notes [VERSION](the top of the GitHub release).raw-options = { root = ".." });publish.ymlbuilds fromhatch-prebuilt/.Shared workflows, moved here from cpp-linter/.github (the copies there stay until every wheel repository calls these):
binary-wheels.yml: inputs default frompython -m hatch_prebuilt info; ends with All wheels pass, the one check a ruleset needs to require.monitor-upstream.yml: the cpp-linter-publisher App opens the update pull request (so its CI runs) and turns on auto-merge, only when the branch rules require a check.wheel-automation.yml(new): pre-commit and labels on pull requests, release draft and publish onmain, update pull request and stale issues every day. It callsmonitor-upstream.ymlat its own commit, and the generic workflows in cpp-linter/.github (release-drafter.ymlwithpublish: trueneeds feat: let release-drafter.yml publish the release of a new version .github#134).wheel-release.yml: unchanged.Runbooks (
runbooks/): what the bot does and what a person still does: the one-time setup, a new wheel repository, packaging fixes, older versions, failed releases.runbooks/new-wheel.py <tool>writes a new repository fromrunbooks/templates/static-binaries-wheel/.CI: besides hatch-prebuilt's tests, every pull request writes two wheel repositories with
new-wheel.py(clang-query, and clang-tidy with headers in a package of another name), builds a wheel of each with hatch-prebuilt from the same commit and runs its smoke test. Both pass locally.After merging
v0.3.0). The PyPI and TestPyPI trusted publishers must name the repositorywheels.hatch-prebuilt>=0.3,<1andcpp-linter/wheels/...@main.Related Issues
With cpp-linter/.github#134 and cpp-linter/clang-include-cleaner-wheel#17.